package com.ardrone.vol;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

import com.ardrone.revue.R;

public class IhmVol extends Activity implements OnClickListener 
{

	Button decollage = null;
    Button atterissage = null;
	
    /** Called when the activity is first created. */
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        
        setContentView(R.layout.ihmvol);
        
        decollage = (Button)this.findViewById(R.id.decollage);
        atterissage = (Button)this.findViewById(R.id.atterissage);

        decollage.setOnClickListener(this);
        atterissage.setOnClickListener(this);
        
       
}

	@Override
	public void onClick(View v) 
	{
		
		if(v.getId() == R.id.decollage)
		{	
		Decollage client = new Decollage();
        client.start();
		}
	    if(v.getId() == R.id.atterissage)
		{
		Atterissage client2 = new Atterissage();
	    client2.start();
		}
		
	}


    
}